External Exam Download Resources Web Applications Games Recycle Bin

HTML attributes and table tags

HTML attributes provides additional information about the element: HTML comments are not rendered but are visible in the source code. A HTML comment is wrapped in <!-- and -->

table1.html

<table border="1">
  <tr>
    <td>Top-left cell</td>
    <td>Top-right cell</td>
  </tr>
  <tr>
    <td>Bottom-left cell</td>
    <td>Bottom-right cell</td>
  </tr>
</table>

table2.html

<table border="1">
  <tr>
    <td colspan="2">This table data cell spans two columns.</td>
  </tr>
  <tr>
    <td>Bottom-left cell</td>
    <td>Bottom-right cell</td>
  </tr>
</table>

table3.html

<table border="1">
  <tr>
    <td colspan="2">This table data cell spans two columns.</td>
  </tr>
  <tr>
    <td rowspan="2">This table data cell spans two rows.</td>
    <td>Middle-right cell</td>
  </tr>
  <tr> <!-- the tr stands for table row. -->
    <td>Bottom-right cell</td>
  </tr>
</table>